package com.zjw.socket.demo.starter.messageService;

import com.zjw.socket.demo.starter.annotation.core.VertxApplication;
import com.zjw.socket.demo.starter.core.IOCApplication;
import com.zjw.socket.demo.starter.messageService.im.ImService;
import com.zjw.socket.demo.starter.messageService.im.ImServiceConfig;
import com.zjw.socket.demo.starter.utils.LogUtils;

@VertxApplication
public class NIOSocketServiceVertApplication {

  private static final String TAG = "TcpSocketServiceVertApp";

  public static void main(String[] args) {
    IOCApplication.run(NIOSocketServiceVertApplication.class);
    ImService imService = new ImService();
    ImServiceConfig serviceConfig = new ImServiceConfig();
    serviceConfig.port = 9999;
    serviceConfig.channelKey = "001";
    try {
      imService.start(serviceConfig);
    } catch (Exception e) {
      LogUtils.error(TAG, e);
    }
  }
}
